package cn.learn.dubbo3.enhance.service;


import cn.learn.service.common.api.UserServiceDubbo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Desc
 * @Author XieWei
 * @Date 2022/1/25 16:12
 */
@Service
public class UserService {
    @DubboReference(version = "1.0",group = "user")
    UserServiceDubbo userServiceDubbo;

    public String getUserName(String uid){
        return userServiceDubbo.getUsername(uid);
    }
}
